package isp.apps.example.shoppingcart.domain;

import java.math.BigDecimal;

public class CalculatedShippingOption
{

  private ShippingOption shippingOption;
  private BigDecimal cost;
  private String optionText = "";
  
  public CalculatedShippingOption()
  {
  }

  public void setShippingOption(ShippingOption so)
  {
    this.shippingOption = so;
  }

  public ShippingOption getShippingOption()
  {
    return shippingOption;
  }

  public void setCost(BigDecimal cost)
  {
    this.cost = cost;
  }

  public BigDecimal getCost()
  {
    return cost;
  }

  public String getOptionText()
  {
    optionText = shippingOption.getCompanyName() + " - " + shippingOption.getServiceName() + " - " + 
    shippingOption.getTime() + " day delivery - $" + cost;
    return optionText;
  }
}
